import Vue from 'vue'
import Router from 'vue-router'
import Login from './components/Login.vue'
import Home from './components/Home.vue'
import StudentAdd from './components/student/StudentAdd.vue'
import StudentMain from './components/student/StudentMain.vue'
import CourseMain from './components/course/CourseMain.vue'
import CourseAdd from './components/course/CourseAdd.vue'
import RoleMain from './components/role/RoleMain.vue'
import RoleAdd from './components/role/RoleAdd.vue'
import TeacherAdd from './components/teacher/TeacherAdd.vue'
import TeacherMain from './components/teacher/TeacherMain.vue'
import ScoreMain from './components/score/ScoreMain.vue'
import ScoreAdd from './components/score/ScoreAdd.vue'
import SelectCourseAdd from './components/selectcourse/SelectCourseAdd.vue'
import SelectCourseMain from './components/selectcourse/SelectCourseMain.vue'
import CourseAndTeacher from './components/student/CourseAndTeacher.vue'
import CTeacher from './components/course/CTeacher.vue'
Vue.use(Router)
export default new Router({
  routes: [
    { path: '/', redirect: '/login' },
    { path: '/login', component: Login },
    { path: '/home', component: Home, children: [{ path: '/studentadd', component: StudentAdd }, { path: '/studentmain', component: StudentMain }, { path: '/coursemain', component: CourseMain }, { path: '/courseadd', component: CourseAdd }, { path: '/roleadd', component: RoleAdd }, { path: '/rolemain', component: RoleMain }, { path: '/teacheradd', component: TeacherAdd }, { path: '/teachermain', component: TeacherMain }, { path: '/scoremain', component: ScoreMain }, { path: '/scoreadd', component: ScoreAdd }, { path: '/selectcourseadd', component: SelectCourseAdd }, { path: '/selectcoursemain', component: SelectCourseMain }, { path: '/courseandteacher', component: CourseAndTeacher }, { path: '/cteacher', component: CTeacher }] }
  ]
})
